package com.ynet.middleground.user.bean;

import java.util.List;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 新增跨渠道资源请求参数
 * @date 2020-07-07 14:34
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "新增跨渠道资源配置请求参数", description = "新增跨渠道资源配置请求参数")
public class AddChannelResourceReq extends QueryChannelResourceReq {

    private static final long serialVersionUID = 2598761915024750736L;

    /**
     * 跨渠道资源列表，资源 code，表名
     */
    @ApiModelProperty(value = "跨渠道资源 code 列表 <br>资源 code 为表名", notes = "跨渠道资源 code 列表 <br>资源 code 为表名", required = true)
    @NotNull(message = "资源 code 不能为空")
    private List<String> tableCodeList;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", notes = "描述", dataType = "String")
    @Size(max = 255, message = "长度为 255")
    private String description;

    /**
     * 是否更新
     */
    @ApiModelProperty(value = "是否更新标志，默认 false", notes = "是否更新标志，默认 false", dataType = "boolean", required = true)
    @NotNull(message = "是否更新标志不能为空")
    private Boolean updateFlag;

}
